//
// Created on 2024/3/13.
//
// Node APIs are not fully supported. To solve the compilation error of the interface cannot be found,
// please include "napi/native_api.h".


#include "functions.h" 

bool keepEvenIntegers(const int &x)
{
    return (x & 1) == 0;
}
 
void intSumReduce(int &sum, int x)
{
    sum += x;
}

void numberSumReduce(int &sum, const Number &x)
{
    sum += x.toInt();
}
